<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
  <ul class="nav nav-tabs">
    <li class="active"><a href="#A" data-toggle="tab">微信参数配置</a></li>
    <li><a href="#B" data-toggle="tab">金额设置</a></li>
  </ul>
  <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('AdminWxConfig/do_config')}" method="post">
    <fieldset>
      <div class="tabbable">
        <div class="tab-content">
          <div class="tab-pane active" id="A">
            <div class="form-group">
              <label for="input-appid" class="col-sm-2 control-label">
                <span class="form-required">*</span>APPID</label>
              <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-appid" name="appid" value="{$weixin_config.appid|default=''}">
              </div>
            </div>
            <div class="form-group">
              <label for="input-appsecret" class="col-sm-2 control-label"><span class="form-required">*</span>APPSECRET</label>
              <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-appsecret" name="appsecret" value="{$weixin_config.appsecret|default=''}">
              </div>
            </div>
            <div class="form-group">
              <label for="input-mchid" class="col-sm-2 control-label"><span class="form-required">*</span>商户ID</label>
              <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-mchid" name="mchid" value="{$weixin_config.mchid|default=''}">
              </div>
            </div>
            <div class="form-group">
              <label for="input-key" class="col-sm-2 control-label"><span class="form-required">*</span>支付秘钥</label>
              <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-key" name="key" value="{$weixin_config.key|default=''}">
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                  {:lang('SAVE')}
                </button>
              </div>
            </div>
          </div>
          <div class="tab-pane" id="B">
            <div class="form-group">
              <label for="input-amount" class="col-sm-2 control-label"><span class="form-required">*</span>金额</label>
              <div class="col-md-6 col-sm-10">
                <input type="number" min="0.01" class="form-control" id="input-amount" name="amount" value="{$weixin_config.amount|default='0'}">
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                  {:lang('SAVE')}
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </fieldset>
  </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
